package com.boardgame.gwt.data.space;

import com.boardgame.gwt.data.tile.GwtSpaceTile;
import com.boardgame.gwt.data.tile.station.GwtStationTile;
import lombok.Data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 城市格子
 */
@Data
public class GwtSpaceCity extends GwtSpace{

    /**
     * 分数
     */
    private int vpoints;

    public GwtSpaceCity(){
        this.setSize(1);
        this.setBordercolor("black");
    }

    /**
     * 创建城市格子
     * @return
     */
    public static List<GwtSpace> createSpaceRailroad(){
        List<GwtSpace> list = new ArrayList<>();

        for (int i =1 ;i<39+1;i++){
            GwtSpaceCity gwtSpaceRailroad = new GwtSpaceCity();
            gwtSpaceRailroad.setColumn(i);

            list.add(gwtSpaceRailroad);
        }

        return list;
    }
}

class GwtSpaceCity0 extends GwtSpaceCity{
    public GwtSpaceCity0(){
        this.setCost(0);
    }
}
class GwtSpaceCity1 extends GwtSpaceCity{
    public GwtSpaceCity1(){
        this.setCost(1);
    }
}
class GwtSpaceCity2 extends GwtSpaceCity{
    public GwtSpaceCity2(){
        this.setCost(2);
    }
}
class GwtSpaceCity4 extends GwtSpaceCity{
    public GwtSpaceCity4(){
        this.setCost(4);
    }
}
class GwtSpaceCity6 extends GwtSpaceCity{
    public GwtSpaceCity6(){
        this.setCost(6);
    }
}

class GwtSpaceCity8 extends GwtSpaceCity{
    public GwtSpaceCity8(){
        this.setCost(8);
    }
}
class GwtSpaceCity10 extends GwtSpaceCity{
    public GwtSpaceCity10(){
        this.setCost(10);
    }
}
class GwtSpaceCity12 extends GwtSpaceCity{
    public GwtSpaceCity12(){
        this.setCost(12);
    }
}
class GwtSpaceCity14 extends GwtSpaceCity{
    public GwtSpaceCity14(){
        this.setCost(14);
    }
}
class GwtSpaceCity16 extends GwtSpaceCity{
    public GwtSpaceCity16(){
        this.setCost(16);
    }
}
class GwtSpaceCity18 extends GwtSpaceCity{
    public GwtSpaceCity18(){
        this.setCost(18);
    }
}